import 'package:flutter/material.dart';
import 'package:flutter2/colors.dart';
import 'package:flutter2/widget/base/base_container.dart';
import 'package:flutter2/widget/base/normal_text.dart';

class TopTip extends StatelessWidget {
  const TopTip({super.key, required this.title});

  final String title;

  @override
  Widget build(BuildContext context) {
    return BaseContainer(
      width: double.infinity,
      margin: EdgeInsets.symmetric(horizontal: 16, vertical: 10),
      background: tipColor,
      radius: 10,
      padding: EdgeInsets.symmetric(horizontal: 16, vertical: 10),
      child: NormalText(
        fontSize: 12,
        fontColor: btnColor,
        text: "$title仅用于防止欺诈，不会用于其他目的。",
      ),
    );
  }
}
